package com.lmy.androidcustomview.touch

import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View

/**
 * @author
 * @功能:
 * @Creat 2/12/21 1:48 PM
 * @Compony 465008238@qq.com
 */


class TouchView(context: Context, attrs: AttributeSet) : View(context, attrs) {
    /**
     *
     */
    override fun onTouchEvent(event: MotionEvent): Boolean {
        if (event.actionMasked == MotionEvent.ACTION_UP) {
            performClick()
        }
        return true
    }

}